﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Super.Core.CodeHelper;
using Super.Core.Utility;

namespace Super.Core.Builder
{
    /// <summary>
    /// 负责DAL层代码生成
    /// </summary>
    public class BuilderDAL :BaseBuilder, IBuilder.IBuilderDAL
    {

        /// <summary>
        /// 获得DAL层所有代码；
        /// </summary>
        /// <returns></returns>
        public string GetDALCode()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();
        }
        /// <summary>
        /// 获得空的DAL类代码；
        /// </summary>
        /// <returns></returns>
        public string GetEmptyDALCode()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();
        }


        /// <summary>
        /// 得到最大ID的方法代码
        /// </summary>
        /// <param name="TabName"></param>
        /// <param name="ID"></param>
        /// <returns></returns>
        public string CreateGetMaxID()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();
        }

        /// <summary>
        /// 得到Exists方法的代码
        /// </summary>
        /// <param name="_tablename"></param>
        /// <param name="_key"></param>
        /// <returns></returns>
        public string CreateExists()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();
        }

        /// <summary>
        /// 得到Add()的代码
        /// </summary>
        /// <param name="ExistsMaxId">是否有GetMaxId()生成主健</param>	
        public string CreateAdd()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();

        }

        /// <summary>
        /// 得到Update（）的代码
        /// </summary>
        /// <param name="DbName"></param>
        /// <param name="_tablename"></param>
        /// <param name="_key"></param>
        /// <param name="ModelName"></param>
        /// <returns></returns>
        public string CreateUpdate()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();

        }
        /// <summary>
        /// 得到Delete的代码
        /// </summary>
        /// <param name="_tablename"></param>
        /// <param name="_key"></param>
        /// <returns></returns>
        public string CreateDelete()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();

        }

        /// <summary>
        /// 得到GetModel()的代码
        /// </summary>
        /// <param name="DbName"></param>
        /// <param name="_tablename"></param>
        /// <param name="_key"></param>
        /// <param name="ModelName"></param>
        /// <returns></returns>
        public string CreateGetModel()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();
        }

        /// <summary>
        /// 得到QueryList()的代码
        /// </summary>
        /// <param name="_tablename"></param>
        /// <param name="_key"></param>
        /// <returns></returns>
        public string CreateQueryList()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();

        }

        /// <summary>
        /// 得到QueryListAsPage()的代码
        /// </summary>
        /// <returns></returns>
        public string CreateQueryListAsPage()
        {
            StringPlus strclass = new StringPlus();
            return strclass.ToString();
        }
        



   

      
    }

}
